<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>筑紫优品-管理商品</title>
    <link href="webapp/css/bootstrap.min.css" rel="stylesheet">
    <link href="webapp/css/manager_test.css" rel="stylesheet">
    <script src="webapp/js/html5shiv.min.js"></script>
    <script src="webapp/js/respond.min.js"></script>
</head>
<body class="background">
<div class="row clearfix">
    <div class="column col-lg-12">
        <nav class="navbar navbar-default navbar-inverse">
            <div class="title_container">
                <div class="navbar-header">
                    <img class="navbar-brand" src="webapp/image/logo_white.png">
                </div>
                <div class="navbar-inner">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="">管理中心</a></li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</div>

<div class="row clearfix" id="box">
    <div class="column col-lg-2 sidebar">
        <ul class="nav nav-sidebar">
            <li><a href="m_index.html">
                <span class="glyphicon glyphicon-th-large"></span> 概览</a>
            </li>
            <li>
                <a href="#collapsed1" class="nav-header collapsed active" data-toggle="collapse"
                   style="background: #0f0f0f;">
                    <div class="glyphicon glyphicon-barcode"></div>
                    商品
                    <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
                </a>
                <ul id="collapsed1" class="nav nav-list collapse" style="height: 0px;">
                    <li><a href="m_upload.html" class="active"> 上架商品</a></li>
                    <li><a href="m_product.html" class="active"> 管理商品
                        <span class="pull-right glyphicon glyphicon-chevron-left"></span></a></li>
                </ul>
            </li>
            <li>
                <a href="#collapsed2" class="nav-header collapsed" data-toggle="collapse">
                    <div class="glyphicon glyphicon-th-list"></div>
                    分类
                    <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
                </a>
                <ul id="collapsed2" class="nav nav-list collapse" style="height: 0px;">
                    <li><a href="m_add_ategory.html" class="active"> 新增分类</a></li>
                    <li><a href="m_category.html" class="active"> 管理分类</a></li>
                </ul>
            </li>
            <li>
                <a href="#collapsed3" class="nav-header collapsed" data-toggle="collapse">
                    <div class="glyphicon glyphicon-file"></div>
                    订单
                    <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
                </a>
                <ul id="collapsed3" class="nav nav-list collapse secondmenu" style="height: 0px;">
                    <li><a href="m_order.html" class="active"> 管理订单</a></li>
                </ul>
            </li>
        </ul>

    </div>

    <div class="modal fade" id="myModal" tabindex="-1">
        <div class="modal-dialog modal-md" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span>&times;</span>
                    </button>
                    <h4 class="modal-title">修改商品信息</h4>
                </div>
                <div class="modal-body" style="text-align: center">
                    <form>
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-lg-3">填写商品名</label>
                                <div class="col-lg-9">
                                    <input name="name" class="form-control" type="text" id="inputName"
                                           style="width: 85%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3">填写小标题</label>
                                <div class="col-lg-9">
                                    <input name="subtitle" class="form-control" type="text" id="inputSubtitle"
                                           style="width: 85%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3">填写价格</label>
                                <div class="col-lg-9">
                                    <input name="price" class="form-control" type="text" id="inputPrice"
                                           style="width: 85%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3">填写库存</label>
                                <div class="col-lg-9">
                                    <input name="stock" class="form-control" type="text" id="inputStock"
                                           style="width: 85%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3">选择分类</label>
                                <div class="col-lg-4">
                                    <select class="form-control" id="selParentId">
                                        <!--<option value=""></option>-->
                                    </select>
                                </div>
                                <div class="col-lg-4">
                                    <select class="form-control" id="selChlidId">
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-3">商品详情</label>
                                <div class="col-lg-9">
                            <textarea name="detail" class="form-control" rows="3"
                                      style="width: 85%" id="inputDetail"></textarea>
                                </div>
                            </div>
                            <div class="col-lg-2"></div>
                        </div>
                        <div class="btn btn-lg btn-info btn-block" id="upload">更新</div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="column col-lg-10" id="main">
        <h3>根据页数筛选</h3>
        <form action="" method="post" class="form-inline">
            <div class="form-group">
                <input type="text" id="inputSearch" class="form-control"
                       placeholder="在此处输入跳转的页数">
            </div>
            <div class="btn btn-primary" id="searchBtn">确认</div>
        </form>
        <h3>商品信息</h3>
        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th><span class="glyphicon glyphicon-th-large"></span> 商品编号</th>
                    <th><span class="glyphicon glyphicon glyphicon-th-list"></span> 分类编号</th>
                    <th><span class="glyphicon glyphicon-file"></span> 名称</th>
                    <th><span class="glyphicon glyphicon-tags"></span> 价格</th>
                    <th><span class="glyphicon glyphicon-th"></span> 库存</th>
                    <th><span class="glyphicon glyphicon-pencil"></span> 操作</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <!--<td>10</td>
                    <td>100008</td>
                    <td>Haier/海尔HJ100-1HU1 10公斤滚筒洗衣机全自动带烘干家用大容量 洗烘一体</td>
                    <td>4299</td>
                    <td>9993</td>
                    <td>
                        <a class="btn btn-sm btn-danger" name="delete">删除</a>
                        &lt;!&ndash;<a class="btn btn-sm btn-info">设为推荐</a>&ndash;&gt;
                    </td>-->
                </tr>
                </tbody>
            </table>
        </div>
        <footer class="message_footer">
            <nav>
                <ul class="pager">
                    <li><button class="btn btn-sm btn-info" id="Previous">上一页</button></li>
                    <li><button class="btn btn-sm btn-info" id="Next">下一页</button></li>
                </ul>
            </nav>
        </footer>
    </div>

    <!-- 成功 -->
    <div class="modal fade tip-modal" id="successModal" tabindex="-1" role="dialog">
        <div class="alert alert-success" role="alert">操作成功</div>
    </div>

    <!-- 失败 -->
    <div class="modal fade tip-modal" id="unknownModal" tabindex="-1" role="dialog">
        <div class="alert alert-danger" role="alert">请重试</div>
    </div>
</div>
<script src="webapp/js/jquery.min.js"></script>
<script src="webapp/js/bootstrap.min.js"></script>
<script src="webapp/js/url.js"></script>
<script src="webapp/js/m_product.js"></script>
</body>
</html>
